package com.fortune.dto.in.driver;

import com.fortune.constants.PatternConstants;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Pattern;

public class DriverEditPassword {
    @Pattern(regexp= PatternConstants.PASSWORD, message="密码格式错误")
    @ApiModelProperty(required=true, example="旧密码")
    private String password;
    @Pattern(regexp= PatternConstants.PASSWORD, message="密码格式错误")
    @ApiModelProperty(required=true, example="新密码")
    private String newPassword;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    @Override
    public String toString() {
        return "DriverEditPassword{" +
                "password='" + password + '\'' +
                ", newPassword='" + newPassword + '\'' +
                '}';
    }
}
